package com.dgut.legalservice.service;

import com.dgut.legalservice.domain.contract.*;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IContractService {
    public void addCustomContract(Contract contract);
    public void addDownloadContract(Contract contract);

    public List<Contract> findCustomContracts(Integer pageNum, Integer pageSize);
    public List<Contract> findDownloadContracts(Integer pageNum, Integer pageSize);
    public List<Contract> findCustomContractByVo(ContractVo vo, Integer pageNum, Integer pageSize);
    public List<Contract> findDownloadContractByVo(ContractVo vo, Integer pageNum, Integer pageSize);

    public Contract findContractById(Integer id);

    public void updateCustomContract(Contract contract);
    public void updateDownloadContract(Contract contract);

    public void switchShareStatus(Integer contractId);

    public void deleteCustomContract(Integer contractId);
    public void deleteDownloadContract(Integer contractId);

    //    合同审查
    public int insertContractAudit(ContractAudit contractAudit);
    public ContractAudit findContractAuditById(Integer id);
    public int updateContractAudit(ContractAudit contractAudit);
    public boolean ifContractAudit(Integer orderId);
    public ContractAudit findContractAuditByOrderId(Integer orderId);


}
